﻿using System;
using System.Windows;
using Kiva7.Baskets;

namespace Kiva7.Pages
{
    public partial class BasketPage
    {
        private const string Url = "/Pages/BasketPage.xaml";
        public static readonly Uri PageUrl = new Uri(Url, UriKind.RelativeOrAbsolute);

        public BasketPage()
        {
            InitializeComponent();
            CreateStandardControls();
        }

        private void PhoneApplicationPageLoaded(object sender, RoutedEventArgs e)
        {
            string html = Basket.Current.GetHtml();
            Basket.Current.Clear();
            browser.NavigateToString(html);
        }
    }
}